-import string, re, os, sqlite, Xc, sys
+import string, re, os, sys
##### Module variables
"""
VBD_EXPERT_MODE = 0
+##### Module initialisation
+
+try:
+ # try to import sqlite (not everyone will have it installed)
+ import sqlite
+except ImportError:
+ # on failure, just catch the error, don't do anything
+ pass
+
+
##### Networking-related functions
def get_current_ipaddr(dev='eth0'):
exceed VBD_EXPERT_MODE or -1 if it does (error)
"""
+ import Xc # this is only needed in this function
+
xc = Xc.new()
##### Probe for explicitly created virtual disks and build a list